package com.jk.dmconsumer.djhService;

import com.jk.dmcommon.djhEntity.CityEntity;
import com.jk.dmcommon.djhEntity.GoodsTypeEntity;
import com.jk.dmcommon.entity.ShopEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient("DMSEARCHPROVIDER")
public interface SelectOneService {
    /**
     * chengshi
     * @return
     */
    @RequestMapping("searchProvider/selectAllCity")
    List<CityEntity> selectAllCity();

    @RequestMapping("searchProvider/selectAllType")
    List<GoodsTypeEntity> selectAllType();
    @RequestMapping("searchProvider/selectGoodsByType")
    List<ShopEntity> selectGoodsByType(@RequestParam String cityId, @RequestParam String typeId, @RequestParam String timeShow,@RequestParam String searchButtongoods,@RequestParam Integer orderdesc);
    @RequestMapping("searchProvider/selectGoodsCount")
    Integer selectGoodsCount(@RequestParam String cityId,@RequestParam String typeId,@RequestParam String timeShow,@RequestParam String searchButtongoods,@RequestParam Integer orderdesc);
}
